import http from '@/utils/http'
import {SystemMenuAdd} from '@/type/system.menu'

export const getMenuList = (params: {
  type: "-1" | "1" | "2" | "0"
}) => http.get<[]>('system/menu/list', params)

export const addMenu = (data:SystemMenuAdd) => http.post('system/menu/add', data)

export const updateMenu = (data) => http.put('system/menu/update', data)

export const deleteMenu = (params) => http.delete('system/menu/delete', params)
